
#-------------------------------------------------
#
# Project created by QtCreator 2017-05-03T07:32:57
#
#-------------------------------------------------
msvc:QMAKE_CXXFLAGS += /source-charset:utf-8

include(./Logger/MessageLogger.pri)
include(./DisplayWidget/DisplayWidget.pri)

include(./CameraCommon/CameraCommon.pri)
include(./CameraImagingSource/CameraImagingSource_win32.pri)

include(./NosepieceCommon/NosepieceCommon.pri)
include(./NosepieceOlympusREMCB/NosepieceOlympus.pri)

include(./StageControlCommon/StageControlCommon.pri)
include(./StageControlB140/StageControlGalil.pri)

include(./JoyStick/JoyStick.pri)
include(./qtOpenCV/opencv4.pri)
include(./gsl-2.1/gsl-2.7.1.pri)

include(./SQLWidget/SQLWidget.pri)
include(./LampControl/LampControl.pri)
include(./AutoFocus/AutoFocus.pri)
include(./Measure/Measure.pri)
QT       += core gui
CONFIG += c++11

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = JH_Write
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

RESOURCES += icon.qrc
RC_FILE = app.rc

SOURCES += main.cpp\
    automeasure.cpp \
    b3mainwindow.cpp \
        mainwindow.cpp \
    dialog_movetorelativepos.cpp

HEADERS  += mainwindow.h \
    automeasure.h \
    b3mainwindow.h \
    dialog_movetorelativepos.h

FORMS    += mainwindow.ui \
    automeasure.ui \
    dialog_movetorelativepos.ui


win32{
    contains(QT_ARCH, i386) {
        CONFIG(release, debug|release){
            message("build temp_x86 dir 32-bit release mode")
                        RCC_DIR = ../temp_x86/$$TARGET/rcc
                        MOC_DIR = ../temp_x86/$$TARGET/moc
                        OBJECTS_DIR = ../temp_x86/$$TARGET/obj
                        UI_DIR = ../temp_x86/$$TARGET/ui
            }
        CONFIG(debug, debug|release){
            message("build temp_x86d dir 32-bit debug mode")
                        RCC_DIR = ../temp_x86d/$$TARGET/rcc
                        MOC_DIR = ../temp_x86d/$$TARGET/moc
                        OBJECTS_DIR = ../temp_x86d/$$TARGET/obj
                        UI_DIR = ../temp_x86d/$$TARGET/ui
            }
    } else {
        CONFIG(release, debug|release){
            message("build temp_x64 dir 64-bit release mode")
                RCC_DIR = ../temp_x64/$$TARGET/rcc
                MOC_DIR = ../temp_x64/$$TARGET/moc
                OBJECTS_DIR = ../temp_x64/$$TARGET/obj
                UI_DIR = ../temp_x64/$$TARGET/ui
        }
        CONFIG(debug, debug|release){
            message("build temp_x64d dir 64-bit debug mode")
                RCC_DIR = ../temp_x64d/$$TARGET/rcc
                MOC_DIR = ../temp_x64d/$$TARGET/moc
                OBJECTS_DIR = ../temp_x64d/$$TARGET/obj
                UI_DIR = ../temp_x64d/$$TARGET/ui
        }
    }
}
